doctype html
html
    head
        title jade exercise
        link(href="stylesheets/style.css" rel="stylesheet" type="text/css")
    body
        h1 hello #{title}
        #box
            #box1.box.red.lg box1
        .texts
            .text1.
                #{texts.text1}
            .text2=texts.text2
            .text3
                |#{texts.text1}
        .variables
            -var variable1 = 'hello jade' + texts.text1
            .variable1= variable1
        .escaping
            .escaping1 hello <em>jade</em>
            -var escapingV = 'hello <em>escaping</em>'
            .escaping2=escapingV
            .escaping3!=escapingV
        .attributes
            input(type='text',placeholder='your name')
            input(type='text',placeholder='hello #{myName}')
        .comments
            //single line comment
            //-invisible single line comment
            //block comment
                h1 hello world
            //-invisible block comment
                h2 hello world
            //if IE
         .if
            if classify.yep == true
                p is yep
            else
                p is nop
         .unless
             unless classify.nop == true
                p is false
             else
                p is true
         .for
            select
                each book,i in books
                    option(value=i)=book.name
            ul
                for book,i in books
                    li(dataId=i)= book.name
                else
                    p has no book
         .case
             case title
                when 'jade'
                    p jade
                when 'world'
                    p 'world'
                default
                    p 'no thing'
         .mixin
            mixin book(name,price)
                li #{name} for #{price}
            ul#books
                +book('book1',12)
                +book('book2',15)
            mixin book1(name)
                div&attributes(attributes)= name
            +book1('book3')#book3
            +book1('book4')(title='book4')
         .nozhuan
            p \#{}
         #something
            -var a=1
            -var b=2
            p #{a+b}








